import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test02 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("myio\\a.txt");
//        fos.write(97);
//        fos.write(98);
        byte[] bytes={97,98,99,100};
        fos.write(bytes);

        fos.close();


    }
}
